<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <ul>
    <!-- v-for 一定要搭配 `:key=""` , key 的作用是为了更高效的更新虚拟DOM -->
    <li v-for="(item,index) in personArr" :key="item">{{index}} -- {{item}}</li>
  </ul>
</div>


<script src="../js/vue.js"></script>
<script>
  // 1.创建Vue的实例对象
  const app = Vue.createApp({
    data(){
      return{
        personArr: ['秦晓',20,'Fighting']
      }
    }
  }).mount('#app');
</script>
</body>
</html>